from dataclasses import dataclass, field
from typing import List, Optional, Any

@dataclass
class Addorderconvertingsteprequest:
    orderConvertingStepId: str = field(default='')  # 订单工序ID
    pullCount: int = field(default=0)  # 拉动次数

@dataclass
class OrderRunInfoAddData:
    orderRunInfoId: Optional[str] = field(default=None)  # 订单运行ID
    addOrderConvertingStepRequests: List[Addorderconvertingsteprequest] = field(default_factory=lambda: [Addorderconvertingsteprequest()])
    convertingMachineNo: str = field(default='')  # 加工设备编号
    freightTrips: Optional[str] = field(default=None)  # 运输车次
    addToTail: int = field(default=0)  # 是否加入队尾

